package com.chb.docter.controller.apis;

import com.chb.docter.dto.CareHistoryDto;
import com.chb.docter.service.CareHistoryService;
import com.hos.entity.his.CareHistory;
import com.hos.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: 陈海彬
 * @date: Created in 2023/12/28 11:45
 * @description:
 * @modified By:
 * @version:
 */
@RestController
@RequestMapping("docter/api/careHistory")
@Api(tags = "患者病例信息相关接口")
public class ApiCareHistoryController {


    @Resource
    private CareHistoryService careHistoryService;

    @GetMapping("getCareHistoryListByStatus")
    @ApiOperation("查询患者病例信息列表")
    public Result<List<CareHistoryDto>> getCareHistoryListByStatus(String orderState) {
        return new Result<>(200, "查询成功", this.careHistoryService.getCareHistoryListByStatus(orderState));
    }


}